<?php /* Smarty version 2.6.26, created on 2011-02-16 17:21:41
         compiled from admin/submodules/contacts.tab.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'default', 'admin/submodules/contacts.tab.html', 19, false),array('function', 'mailto', 'admin/submodules/contacts.tab.html', 22, false),)), $this); ?>

<table id="contact" class="ui-widget ui-corner-top" width="75%" align="center" cellspacing="0" rules="all" style="border: solid 1px #000000;">
<thead class="ui-widget-header">
    <tr>
	<th>#</th>
	<th>ФИО</th>
	<th>Должность</th>
	<th>Телефон</th>
	<th>E-Mail</th>
	<th>Примечание</th>
	<th>&nbsp;</th>
    </tr>
</thead>
<tbody>
<?php $_from = $this->_tpl_vars['contacts']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['contacts'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['contacts']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['contact']):
        $this->_foreach['contacts']['iteration']++;
?>
    <tr class="data-row">
	<td align="center"><span style="display: none;"><?php echo $this->_tpl_vars['contact']['id']; ?>
</span><?php echo $this->_foreach['contacts']['iteration']; ?>
</td>
	<td style="padding-left: 1em;"><?php echo ((is_array($_tmp=@$this->_tpl_vars['contact']['contact_name'])) ? $this->_run_mod_handler('default', true, $_tmp, '&mdash;') : smarty_modifier_default($_tmp, '&mdash;')); ?>
</td>
	<td align="center"><?php echo ((is_array($_tmp=@$this->_tpl_vars['contact']['post'])) ? $this->_run_mod_handler('default', true, $_tmp, '&mdash;') : smarty_modifier_default($_tmp, '&mdash;')); ?>
</td>
	<td align="center"><?php if ($this->_tpl_vars['contact']['phone_number'] != ''): ?><span class="tel-number"><?php echo $this->_tpl_vars['contact']['phone_number']; ?>
</span><?php else: ?>&mdash;<?php endif; ?></td>
	<td align="center"><?php if ($this->_tpl_vars['contact']['email'] != ''): ?><?php echo smarty_function_mailto(array('address' => $this->_tpl_vars['contact']['email']), $this);?>
<?php else: ?>&mdash;<?php endif; ?></td>
	<td style="padding-left: 1em;"><?php echo ((is_array($_tmp=@$this->_tpl_vars['contact']['note'])) ? $this->_run_mod_handler('default', true, $_tmp, '&mdash;') : smarty_modifier_default($_tmp, '&mdash;')); ?>
</td>
	<td align="center"><a href="?action=contact.delete&id=<?php echo $this->_tpl_vars['contact']['id']; ?>
" class="contact-delete"><img src="images/icons/delete_16.png" border="0" title="Удалить"/></a></td>
    </tr>
<?php endforeach; else: ?>
    <tr><td align="center" colspan="7"><i>контактов не найдено</i></td></tr>
<?php endif; unset($_from); ?>
</tbody>
</table>
<br/>
<a href="javascript:void(0)" id="contact-add"><img src="images/icons/plus_16.png" border="0"/>&nbsp;Добавить контакт</a>